package com.example.springbootdemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling //开启spring boot自带定时任务
public class SpringbootDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run =
                SpringApplication.run(SpringbootDemoApplication.class, args);

//        StringRedisTemplate bean = run.getBean(StringRedisTemplate.class);
//        System.out.println(bean);
    }

}
